<template>
<div class="header">
  <div class="left">
    <span class="iconfont">&#xe625;</span>
  </div>
  <div class="input">
    <span class="iconfont">&#xe632;</span>
    城市\游玩\主题
  </div>
  <div class="right">
    <router-link to="/city">{{this.city}}<span class="iconfont">&#xe7e1;</span></router-link>
  </div>
</div>
</template>

<script>
import { mapState } from 'Vuex'
export default {
  name: 'HomeHeader',
  computed: {
    ...mapState(['city'])
  }
}
</script>

<style lang="stylus"  scoped>
@import "~@/assets/style/varible.styl"
.header
  display: flex
  height: .86rem
  background: $bg
  line-height: .86rem
  font-size: .24rem
  .left
    float: left
    width: .64rem
    font-size: .24rem
    color: $fontbase01
    text-align: center
  .input
    box-sizing:border-box
    flex: 1
    height: .70rem
    padding: .05rem
    margin: .08rem .12rem
    font-size: .30rem
    color: #cccccc
    background: $fontbase01
    border-radius: .1rem
    line-height: .60rem
  .right
    a
      float: right
      min-width: 1.24rem
      text-align: center
      font-size: .24rem
      color: $fontbase01
</style>
